<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-bind示例</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
</head>
<body>
    <div id="app">
        <input type="button" value="按钮" v-bind:title="Title" v-bind:style="{color:Color,width:Width+'px'}">
    </div>

    <script>
        new Vue({
            el:"#app",
            data:{
                Title:"这是我自定义的title属性",
                Color:"red",
                Width:"120"
            }
        });
    </script>
</body>
</html>
